<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<h1>JSON对象的创建</h1>
		<script>
			person={
				name:'JACK',
				age:20,
				addr:{
					homeAddr:'太原迎泽',
					workAddr:'太原小店'
				}
			};
			alert(person.addr.homeAddr);
			alert(person['age'])
			students=[
			{name:'wzj',age:43},
			{name:'zhaolaoshi',
			         age:40}
			];
			alert(students[1].age);
		</script>
	</body>
</html>
